//
//  InputLayer.h
//  ScrollingWithJoy
//
//  Created by Steffen Itterheim on 12.08.10.
//  Copyright 2010 Steffen Itterheim. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"

// SneakyInput headers
#import "ColoredCircleSprite.h"
#import "SneakyButton.h"
#import "SneakyButtonSkinnedBase.h"
#import "SneakyJoystick.h"
#import "SneakyJoystickSkinnedBase.h"

#import "SneakyExtensions.h"

#import "GameOneScore.h"


#import "GameKitHelper.h"


#define		BIRD_FLIGHT_SCORE_FILE_NAME	(@"GreatBirdOneGame.png")   ///保存游戏分数相关的数据


enum SPRITE_TAG {
	TAG_LADEN_ICON=900,
	TAG_SCORE_LABEL,
	TAG_MISS_HINT,
	TAG_PAUSE,
	TAG_COVER_LAYER,
	TAG_COVER_LAYER_MENU,
	TAG_LABEL_GAME_OVER,
	TAG_BEST_SCORE_PIC,
	TAG_BEST_SCORE,
};


enum SPIKE_TAG {
	SPIKE_TAG_TOP=199,
	SPIKE_TAG_BOTTOM,
};


enum HARD_LEVEL {
	//VERY_EASY,
	EASY,
	NORMAL,
	HARD,
	//VERY_HARD,
};

@interface InputLayer : CCLayer <GameKitHelperProtocol>
{
	SneakyButton* fireButton;
	SneakyJoystick* joystick;
	
	ccTime totalTime;
	ccTime nextShotTime;
	
	bool bPowerPressed;
	int posDelta;
	
	CCSpriteBatchNode* batch;  //钉子的batch node
	
	NSMutableArray *_targets; 
	
	
	CCLabel * mFilghtScore;
    int mScore;
}


@property (nonatomic, readwrite) bool bPowerPressed;
@property (nonatomic, readwrite) int posDelta;


@property (nonatomic,retain) CCLabel * mFilghtScore;


-(float)getInterval;

@end
